package com.study.s03.stackandqueue;

public class TestMyStack {
	public static void main(String[] args) {
		
		MyStack myStack = new MyStack(3);
		myStack.push(66);
		myStack.push(77);
		myStack.push(55);
		//myStack.push(22);
		
		System.out.println("是否已满：" + myStack.isFull());
		System.out.println("是否为空：" + myStack.isEmpty());
		
		while(!myStack.isEmpty()) {
			System.out.println(myStack.pop());
		}
		System.out.println("是否已满：" + myStack.isFull());
		System.out.println("是否为空：" + myStack.isEmpty());
	}
}
